package org.anupta.game.server.game.packet.account;

import org.anupta.game.main.Main;
import org.anupta.game.server.game.client.GameClient;
import org.anupta.game.server.game.packet.GamePacket;

public class AccountKey extends GamePacket {
	private String hash = null;

	public AccountKey(GameClient client, String message) {
		super(client, message);
		unpack();
		doPacket();
	}

	@Override
	public void unpack() {
		hash = packetIn.substring(2);
	}

	@Override
	public void pack() {
	}

	@Override
	public void doPacket() {
		client.setHash(hash);
		Main.out.println(new StringBuilder("Identification of : ").append(client.getIp()).append(" succeed").toString());
	}
}
